package com.alks.entity.data.entity.imes;

import com.alks.entity.data.page.PageParam;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * @author:hxl
 * @create: 2024-12-17 14:26
 * @Description:
 */
@Getter
@Setter
@NoArgsConstructor
public class SysUserSub extends PageParam {
    @ApiModelProperty(value = "用户id" ,required = false)
    @TableField("USER_ID")
    @TableId
    private Long userId;
    @ApiModelProperty("部门id")
    @TableField("DEPT_ID")
    private Long deptId;
    @ApiModelProperty(value = "登录账号",required = true)
    @TableField("LOGIN_NAME")
    private String loginName;
    @ApiModelProperty("用户昵称")
    @TableField("USER_NAME")
    private String userName;
    @ApiModelProperty("用户类型 00系统用户 01注册用户")
    @TableField("USER_TYPE")
    private String userType;
    @ApiModelProperty("用户邮箱")
    @TableField("EMAIL")
    private String email;
    @ApiModelProperty("手机号码")
    @TableField("PHONENUMBER")
    private String phoneNumber;
    @ApiModelProperty("用户性别（0男 1女 2未知")
    @TableField("SEX")
    private Character sex;
    @ApiModelProperty("头像路径")
    @TableField("AVATAR")
    private String avatar;
    @ApiModelProperty(value = "密码",required = true)
    @TableField("PASSWORD")
    private String password;
    @ApiModelProperty("盐加密")
    @TableField("SALT")
    private String salt;
    @ApiModelProperty("帐号状态（0正常 1停用）")
    @TableField("STATUS")
    private Character status;
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableField("DEL_FLAG")
    private Character del_flag;
    @ApiModelProperty("最后登录IP")
    @TableField("LOGIN_IP")
    private String loginIp;
    @ApiModelProperty("最后登录时间")
    @TableField("LOGIN_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date loginDate;
    @ApiModelProperty("密码最后更新时间")
    @TableField("PWD_UPDATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date pwdUpdateDate;
    @ApiModelProperty("创建者")
    @TableField("CREATE_BY")
    private String createBy;
    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty("更新者")
    @TableField("UPDATE_BY")
    private String updateBy;
    @ApiModelProperty("更新时间")
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty("备注")
    @TableField("REMARK")
    private String remark;
    @ApiModelProperty("公司ID")
    @TableField("COMPANY_ID")
    private String companyId;
    @ApiModelProperty("是否为超管(0 否， 1是) 为了给不同的公司别设置超管")
    @TableField("SUPER_ADMIN")
    private Character superAdmin;
    private String roleId;
}
